// 库存管理接口
import request from "@/common/request.js";
const api = {
  an_classify: "/annunciate_classify/",
};

const acAnApi = {
  get_an_classify(params) {
    return request({
      url: api.an_classify,
      method: "get",
      params,
    });
  },

  an_classify_detail(id) {
    return request({
      url: api.an_classify + id,
      method: "get",
    });
  },

  post_an_classify(data) {
    return request({
      url: api.an_classify,
      method: "post",
      data,
    });
  },

  patch_an_classify(data, id) {
    return request({
      url: api.an_classify + id + "/",
      method: "patch",
      data,
    });
  },

  delete_an_classify(id) {
    return request({
      url: api.an_classify + id + "/",
      method: "delete",
    });
  },
};
export default acAnApi;
